package com.sanshi.project.admin.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 租赁合同
 *
 * @author nikon
 * @date 2023-11-27 08:46:34
 */
@Data
@TableName("contract_house")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "contract_house")
public class ContractHouseEntity extends Model<ContractHouseEntity> {

    /**
     * 房屋Id主键
     */
    @Schema(description = "房屋Id主键")
    private Long id;
    /**
     * 租户号
     */
    @Schema(description = "租户号")
    private Long tenantId;
    /**
     * 删除标记[0未删除，1已删]
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "删除标记[0未删除，1已删]")
    private String delFlag;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    /**
     * 合同Id
     */
    @Schema(description = "合同Id")
    private Long contractId;
    /**
     * 房屋编码
     */
    @Schema(description = "房屋编码")
    private String code;
    /**
     * 房屋房号
     */
    @Schema(description = "房屋房号")
    private String name;
    /**
     * 项目类型
     */
    @Schema(description = "项目类型")
    private String type;
    /**
     * 项目
     */
    @Schema(description = "项目")
    private Long projectId;
    /**
     * 楼栋
     */
    @Schema(description = "楼栋")
    private Long buildingId;
    /**
     * 单元
     */
    @Schema(description = "单元")
    private String entrance;
    /**
     * 楼层
     */
    @Schema(description = "楼层")
    private Integer floor;
    /**
     * 产权归属
     */
    @Schema(description = "产权归属")
    private String ownership;
    /**
     * 产权单位
     */
    @Schema(description = "产权单位")
    private String unit;
    /**
     * 房屋建筑面积
     */
    @Schema(description = "房屋建筑面积")
    private BigDecimal floorArea;
    /**
     * 房屋使用面积
     */
    @Schema(description = "房屋使用面积")
    private BigDecimal useArea;
    /**
     * 收益
     */
    @Schema(description = "收益")
    private BigDecimal profit;
    /**
     * 收益比例
     */
    @Schema(description = "收益比例")
    private BigDecimal ratio;
}
